package com.yf.screenshot;

import android.text.TextUtils;

import org.xutils.http.RequestParams;
import org.xutils.http.app.ParamsBuilder;

/**
 * 自定义请求
 * */
public class CustomRequestParams extends RequestParams {

    public String result="";//请求返回结果
    public CustomRequestParams() {
    }

    public CustomRequestParams(String uri) {
        super(uri);
    }

    public CustomRequestParams(String uri, ParamsBuilder builder, String[] signs, String[] cacheKeys) {
        super(uri, builder, signs, cacheKeys);
    }

    @Override
    public String toString() {
        String url = this.getUri();
        String baseParamsStr = super.toString();
        return TextUtils.isEmpty(url) ?
                baseParamsStr :
              (url.contains("?") ? "&" : "?") + baseParamsStr+"   \n返回:"+result;
    }


}
